package com.toune.movie.mvp.adapter;

import android.content.Context;
import android.content.Intent;
import android.support.annotation.Nullable;
import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.toune.movie.R;
import com.toune.movie.vo.VarietyDetailVo;
import com.vondear.rxui.view.RxRunTextView;

import java.util.List;

/**
 * Created by Administrator on 2018/5/15.
 */

public class AdapterVarietyDetail extends BaseQuickAdapter<VarietyDetailVo.SourceList.DataBean,BaseViewHolder> {

    public AdapterVarietyDetail(int layoutResId, @Nullable List<VarietyDetailVo.SourceList.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder holder, VarietyDetailVo.SourceList.DataBean data) {
        RxRunTextView titleTv = holder.getView(R.id.title_tv);
        titleTv.setText(data.getName());
    }
}
